package com.module.dao;

import com.module.model.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer paramInteger);

    int insert(UserInfo paramUserInfo);

    int insertSelective(UserInfo paramUserInfo);

    UserInfo selectByPrimaryKey(Integer paramInteger);

    UserInfo selectByMobile(String paramString);

    int updateByPrimaryKeySelective(UserInfo paramUserInfo);

    int updateByPrimaryKey(UserInfo paramUserInfo);


    List<Map<String,Object>> selectUsers(@Param("name") String name, @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    UserInfo selectById(@Param("id")int id);

    UserInfo selectByName(@Param("username")String username);

    UserInfo login(@Param("username")String username, @Param("password")String password);
}
